package com.spsoft.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 角色类型枚举
 *
 * @author cdl
 * @date 2023/11/07
 */
@Getter
@AllArgsConstructor
public enum SysRolesTypeEnum {

    sysDept("SYS_DEPT","普通岗位"),

    sysEnt("SYS_ENT","汇总岗位");

    /** code**/
    private final String code;
    /**  说明 **/
    private final String info;
    public static String getInfo(String code) {
        SysRolesTypeEnum[] sysRolesTypeEnum = values();
        for (SysRolesTypeEnum os : sysRolesTypeEnum) {
            if (os.code.equals(code)) {
                return os.getInfo();
            }
        }
        return null;
    }
}
